import http from "@/utils/http"

// 加入购物车接口
export const insertCartAPI = ({ skuId, count }) => http.post('/member/cart', {
  skuId,
  count
})

// 获取购物车接口
export const getCartAPI = () => http.get('/member/cart')

// 删除购物车
export const delCartAPI = (ids) => http.delete('/member/cart', {
  data: {
    ids
  }
})

// 合并购物车
export const mergeCartAPI = (data) => http.post('/member/cart/merge', data)
